package com.fashiontextile.user.service.impl;

import com.fashiontextile.user.entity.Role;
import com.fashiontextile.user.mapper.RoleMapper;
import com.fashiontextile.user.service.RoleService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author brooke_zb
 */
@Service
@AllArgsConstructor
public class RoleServiceImpl implements RoleService {
    private RoleMapper roleMapper;

    @Override
    public Role selectByRid(Integer rid) {
        return roleMapper.selectByRid(rid);
    }

    @Override
    public Role selectByName(String name) {
        return roleMapper.selectByName(name);
    }
}
